var _Class;function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}SK.LinkHelper=SK.LinkHelper||{extractLinksOnElements:function(e){this.list&&e(this.list),this.callbacks=this.callbacks||[],this.callbacks.push(e),this.is_called||((new SK.API).execute("object.site.get_pages",{},function(e,t,n){if(e){var i=n.pages.links;this.list={};for(var s=0,o=i.length;s{})}=e,c=_objectWithoutProperties(e,["internalLink","externalLink","default_value","href","options","link","data_attributes","onClick"]);s=SK.LinkSerializer.deserialize(t||a)||SK.Util.deserializeNodeId(t||a);var p=Number(s)||/^anchor_\d+_\d+/.test(s)?"page_node_id://"+SK.Singletons.env.get("user_id")+"_"+s:SK.Util.buildLink(s),h=(s=(s?p:n)||i)!=SK.React.Component.Link.EMPTY_LINK;return _objectSpread({},c,{href:h?s:"#",target:o.target||null,rel:o.rel||null,"data-target":r?o.target:null,"data-href":r?o.href:null,onClick:e=>{h||e.preventDefault(),l(e)}})}render(){return React.createElement("a",this.state,!SK.Singletons.env.get("admin_mode")&&![null,"","_self"].includes(this.state.target)&&React.createElement("img",{alt:"El enlace externo abre una nueva pestaña o ventana.",src:"/Shared/Images/blank.gif#SYSTEM",className:"sk-system-hidden-element"}),this.props.children)}},"EMPTY_LINK","javascript:void(0)"),_Class),SK.React=SK.React||{},SK.React.Component=SK.React.Component||{},SK.React.Component.ContentEditable=SK.React.Component.ContentEditable||class extends React.Component{constructor(e){super(e),_defineProperty(this,"render_properties",{}),_defineProperty(this,"emitChange",()=>{var e=this.getDOMNode()[this.content_property];this.props.onChange&&e!==this.previous_html&&this.props.onChange({target:{value:e}}),this.previous_html=e}),this.state={content_type:this.props.html?"html":"text",content_editable:!1,content:(this.props.html?this.props.html:this.props.text)||" "},this.render_properties=Object.assign({},this.props,{html:void 0,text:void 0,custom_tag:void 0,onChange:void 0})}static getDerivedStateFromProps(e){return{content:e.html||e.text}}render(){const e=this.props.custom_tag||"div";return"html"==this.state.content_type?React.createElement(e,_extends({},this.render_properties,{onInput:this.emitChange,onBlur:this.emitChange,contentEditable:this.state.content_editable,dangerouslySetInnerHTML:{__html:this.state.content}})):React.createElement(e,_extends({},this.render_properties,{onInput:this.emitChange,onBlur:this.emitChange,contentEditable:this.state.content_editable}),this.state.content)}componentDidMount(){this.setState({content_editable:!!SK.Singletons.env.get("admin_mode")&&!SK.Singletons.env.get("sk_pro_preview")&&!SK.Util.isMobile()}),SK.UI&&SK.UI.Preview&&SK.UI.Preview.addEvents({onEnable:this.setState.bind(this,{content_editable:!1}),onDisable:this.setState.bind(this,{content_editable:!SK.Util.isMobile()})}),this.content_property="html"==this.state.content_type?"innerHTML":"innerText"in this.getDOMNode()?"innerText":"textContent"}shouldComponentUpdate(e,t){return e[this.state.content_type]!==this.getDOMNode()[this.content_property]||t.content_editable!==this.state.content_editable}getDOMNode(){return ReactDOM.findDOMNode(this)}},SK.React=SK.React||{},SK.React.Component=SK.React.Component||{},SK.React.Component.PlaceholderWrapper=SK.React.Component.PlaceholderWrapper||function(e){var{html:t,className:n="",children:i}=e,s=_objectWithoutProperties(e,["html","className","children"]);return SK.Singletons.env.get("admin_mode")?React.createElement("div",_extends({className:`sk-obj-placeholder-wrapper ${n}`,style:{display:"none"},dangerouslySetInnerHTML:{__html:t}},s)):""},SK.React=SK.React||{},SK.React.Component=SK.React.Component||{},SK.React.Component.SectionIcon=class extends React.Component{constructor(e){super(e),_defineProperty(this,"element",null),_defineProperty(this,"state",{src:"",visible:!1}),this.state={src:this.constructor.getIconState(e)},this.setElement=this.setElement.bind(this)}render(){return React.createElement("img",{className:"fmIcn "+this.props.className,src:this.state.src,style:{display:this.state.src&&this.state.visible?"":"none"},ref:this.setElement})}static getDerivedStateFromProps(e){return{src:SK.React.Component.SectionIcon.getIconState(e)}}componentDidMount(){"stock"==this.props.type&&(this.props.properties["__"+this.props.icon+"Stock"]={sizes:{small:this.element.getAttribute("src")}}),this.setState({visible:!0})}static getIconState(e){let t=SK.React.Component.SectionIcon,n=t.getStockImageValue(e.icon,e)||t.getStockImageValue(e.fallback,e),i=t.getCustomImageValue(e.icon,e)||t.getCustomImageValue(e.fallback,e);return"stock"==e.type?n:i}static getStockImageValue(e,t){var n=t.properties["__"+e+"Stock"],i=(t.properties[e+"Stock"]||{}).id;return n&&i?((n||{}).sizes||{}).small:(n=t.properties[e+"Stock"]||{})&&n.collection_id&&n.id?`stock_image_id://${n.collection_id}___${n.id}___small`:""}static getCustomImageValue(e,t){return(t.properties[e+"Src"]||"").replace("__None__","")}setElement(e){this.element=e}},SK.React=SK.React||{},SK.React.Component=SK.React.Component||{},SK.React.Component.Section=SK.React.Component.Section||{},SK.React.Component.Section.Display=SK.React.Component.Section.Display||class extends SK.React.Component.Display{get accessibilityRoles(){let e=`sk-sg-tab-${this.props.node_id}`,t={};switch(this.state.__type){case 2:case 6:t={head_id:e,head_role:"tab",body_role:"tabpanel",body_aria:e};break;case 1:case 3:case 4:case 5:t={head_id:e,wrapper_role:"region",wrapper_aria:e}}return t}constructor(e){super(e),_defineProperty(this,"section_element",null),this.is_container="43"==e.obj_id,this.state.__elements=e.elements||[],this.state.__inactive=1==this.state.SectionDefaultState,this.state.__animation_completed=!0,this.state.__link_list={},this.handleCaptionChange=this.handleChange.bind(this,"SectionCaption"),this.handleSubTitleChange=this.handleChange.bind(this,"SectionSubTitle"),this.onTransitionEnd=this.onTransitionEnd.bind(this),this.onHeadClick=this.onHeadClick.bind(this),this.onHeadMouseDown=this.onHeadMouseDown.bind(this)}render(){var e=this.state.__edit_mode?SK.Singletons.env.get("advanced_options_enabled"):!!this.state.SectionSubTitle,t=[],n=this.state.__link_list[this.state.InternalLink]||this.state.InternalLink,i=this.state.Link,s=this.state.__edit_mode?null:SK.React.Component.Link.EMPTY_LINK;return([2,4,5,6].indexOf(this.state.__type)>=0||this.state.__edit_mode)&&(n=i=null),this.state.__elements.forEach(e=>{t.push(React.createElement("div",{key:`e_1_${e.node_id}`,className:this.getContentWrapperClass(e.node_id),dangerouslySetInnerHTML:{__html:e.contents}})),SK.Singletons.env.get("admin_mode")&&t.push(React.createElement(SK.React.Component.PlaceholderWrapper,{key:`e_2_${e.node_id}`,html:e.placeholder}))}),React.createElement("div",{id:this.is_container?"":`section_wrapper_${this.props.node_id}`,className:this.getCellClasses(),rel:1==this.state.SectionDefaultState?"collapse":"expand",ref:e=>this.section_element=e,role:this.accessibilityRoles.wrapper_role,"aria-labelledby":this.accessibilityRoles.wrapper_aria},!this.is_container&&React.createElement("div",{id:this.accessibilityRoles.head_id,className:"secHead",onClick:this.onHeadClick,role:this.accessibilityRoles.head_role},React.createElement("div",{className:"secTitle"},React.createElement(SK.React.Component.Link,{internalLink:n,externalLink:i,options:this.state.LinkOptions,default_value:s,className:"secCptn",onMouseDown:this.onHeadMouseDown},React.createElement("span",null,React.createElement("span",null,React.createElement("span",{className:"fmCptnWrap "+("image_only"==this.state.ImageLocation?"icon-only":"")},React.createElement(SK.React.Component.ContentEditable,{className:"fmCptnMain"+(this.state.__edit_mode?" editable":""),custom_tag:"span",text:this.state.SectionCaption,onChange:this.handleCaptionChange}),e&&React.createElement(SK.React.Component.ContentEditable,{className:"fmCptnSub"+(this.state.__edit_mode?" editable":""),custom_tag:"span",text:this.state.SectionSubTitle,onChange:this.handleSubTitleChange})),"none"!=this.state.ImageSrcType&&React.createElement("span",{className:"fmIcnWrap"},React.createElement(SK.React.Component.SectionIcon,{className:"fmIcnNor",type:this.state.ImageSrcType,properties:this.state,icon:"NormalHeaderImage"}),React.createElement(SK.React.Component.SectionIcon,{className:"fmIcnSel",type:this.state.ImageSrcType,properties:this.state,icon:"RolloverHeaderImage",fallback:"NormalHeaderImage"}),React.createElement(SK.React.Component.SectionIcon,{className:"fmIcnCur",type:this.state.ImageSrcType,properties:this.state,icon:"SelectedHeaderImage",fallback:"NormalHeaderImage"})))))),React.createElement("div",{className:this.getIconCellClasses()}," ")),React.createElement("div",{className:this.getBodyClasses(),rel:this.props.node_id,onTransitionEnd:this.onTransitionEnd,role:this.accessibilityRoles.body_role,"aria-labelledby":this.accessibilityRoles.body_aria},React.createElement("div",{className:this.is_container?"":"secBodyWrapper",onTransitionEnd:this.onTransitionEnd},React.createElement("div",{className:this.is_container?"":"secBodyInnerWrapper"},React.createElement(SK.React.Component.PlaceholderWrapper,{html:this.props.root_placeholder}),t,React.createElement(SK.React.Component.ZeroFootprint,{show:this.state.__elements.length,message:this.props.zero_footprint_text})))),!this.is_container&&React.createElement("style",null,this.getFixedWidth()))}componentDidMount(){super.componentDidMount(),SK.Singletons.env.get("admin_mode")&&SK.LinkHelper.extractLinksOnElements(e=>{this.setState({__link_list:e})}),SK.Singletons.uimenu&&this.is_container&&SK.Singletons.loadpromise.then(()=>{SK.Singletons.uimenu.getRepresentativeByNodeID(this.props.node_id).clearEvents()}),setTimeout(()=>{(SK.Singletons.element_instances.get(this.props.parent_id)||{updateSectionsData(){}}).updateSectionsData(this.props.node_id)},0)}componentDidUpdate(e,t){this.props.elements=this.state.__elements,setTimeout(()=>{(SK.Singletons.element_instances.get(this.props.parent_id)||{moveSectionBody(){}}).moveSectionBody(this.props.node_id)},0)}onHeadClick(){var e=SK.Singletons.element_instances.get(this.props.parent_id);if(e&&e.animateOnClick(this.props.node_id),5==this.state.__type){let t=Array.from(e.section_element.querySelectorAll(".secHead")),n=t.indexOf(this.section_element.firstChild)-1,i=n>=0?t[n]:this.section_element.firstChild,s=n>=0?i.offsetHeight:0,o=i.getBoundingClientRect().top+window.scrollY+s;window.scrollTo({top:o,left:0,behavior:"smooth"})}}onHeadMouseDown(e){SK.Singletons.env.get("admin_mode")&&!e.target.getAttribute("contenteditable")&&e.preventDefault()}handleChange(e,t){this.setState({[e]:t.target.value.replace(/\n|\r/g,"")})}getActiveState(){return!1===this.state.__inactive}onTransitionEnd(){this.setState({__animation_completed:!0});var e=SK.Singletons.element_instances.get(this.props.parent_id);e&&e.updateChildrenAnimationState([this.props.node_id])}getContentWrapperClass(e){return`plain sk-content-wrapper-${e}`}getCellClasses(){if(this.is_container)return"sk-container-inner";var e=["sectionCell"];return(this.state.SectionSubTitle||this.state.__edit_mode)&&e.push("wIcn"),("stock"==this.state.ImageSrcType&&this.state.__NormalHeaderImageStock||"custom"==this.state.ImageSrcType&&this.state.NormalHeaderImageSrc)&&(!this.state.SectionSubTitle&&e.push("wIcn"),"left"==this.state.ImageLocation&&e.push("wIcnL"),"right"==this.state.ImageLocation&&e.push("wIcnR"),("1"==this.state.ResizeImages&&"custom"==this.state.ImageSrcType||this.state.NormalHeaderImageStock&&"stock"==this.state.ImageSrcType)&&e.push("imgResize")),this.state.__last&&e.push("sectionLast"),this.state.__first&&e.push("sectionFirst"),e.push(this.state.__inactive?"noactive":"active"),e.push(!this.state.Link&&!this.state.InternalLink||[2,6].indexOf(this.state.__type)>=0?"nolink":"haslink"),[4,5].indexOf(this.state.__type)>=0&&e.push(this.state.__inactive||1==this.state.SectionDefaultState?"collapse":"expand"),e.join(" ")}getBodyClasses(){return this.is_container?"":["secBody",`sk-sg-body-${this.props.node_id}`,this.state.__inactive?"noactive":"active",this.state.__animation_completed?"sk-animation-completed":""].join(" ")}getIconCellClasses(){return["secIconColCell",this.state.__inactive?"secIconCol":"secIconExp"].join(" ")}getFixedWidth(){var e="",t="";if(this.state.SectionFixWidth&&this.section_element&&(t=this.state.WidthMetric||"px",e=parseInt(this.state.SectionFixWidth,10),"px"==t&&SK.Singletons.env.get("client"))){var n=window.getComputedStyle(this.section_element);e=e+parseInt(n.borderRightWidth,10)+parseInt(n.borderLeftWidth,10)+parseInt(n.paddingRight,10)+parseInt(n.paddingLeft,10)}return e?`\n .sgHC0 .sk-sg-${this.props.node_id} {\n width: ${e}${t};\n }\n .sgHC0.sg-equal-columns .sk-sg-${this.props.node_id} {\n width: auto;\n }\n .sgHC0.sg-equal-columns #e${this.props.node_id} {\n width: 100%;\n }`:""}};